package com.cxy.service;

import com.cxy.pojo.Emp;
import com.cxy.pojo.PageBean;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;


public interface EmpService {

    PageBean limitSelect(Integer pageSize, Integer page);

    PageBean limitPageHelperSelect(Integer pageSize, Integer page);

    PageBean limitIfSelect(Integer pageSize, Integer page, String name, Short gender, LocalDate begin, LocalDate end);

    void delete(List<Integer> ids);

    void insert(Emp emp);

    Emp getById(Integer id);

    void updateEmp(Emp emp);

    Emp login(Emp emp);
}
